import { getEditorProps, getGridEditorCommonProps } from './common';

/**
 * 获取上传的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getUploadProps<C>() {
  return { ...getEditorProps<C>(), value: String };
}

/**
 * 获取表格上传的props
 *
 * @export
 * @template C
 * @return {*} 
 */
export function getGridUploadProps<C>() {
  return { ...getUploadProps<C>(), ...getGridEditorCommonProps() };
}
